package com.dpj.edu.controller;

import com.dpj.commonutils.Result;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/edu/user")

@RestController
public class EduLoginController {
    //login
    @PostMapping("/login")
    public Result login(){
        return Result.ok().data("token","admin");
    }
    @GetMapping("/info")
    public Result info(){
        return Result.ok().data("roles","[admin]").data("name","admin").data("avatar","https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg1.baidu.com%2Fit%2Fu%3D1207938889%2C442335491%26fm%3D253%26app%3D120%26f%3DPNG%3Fw%3D800%26h%3D800&refer=http%3A%2F%2Fimg1.baidu.com&app=2002&size=w300&q=a80&n=0&g=0n&fmt=jpeg?sec=1645540302&t=f87c1462a9c716b8b449bb9758190b9b");
    }
}
